package cn.dw.mm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.dw.mm.domain.Asset;
import cn.dw.mm.mapper.AssetMapper;
import cn.dw.mm.service.AssetService;

@Service
public class AssetServiceImpl implements AssetService {
	
	@Autowired
	private AssetMapper assetMapper;
	
	@Override
	public int deleteByPrimaryKey(String id) {
		return assetMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Asset record) {
		return assetMapper.insert(record);
	}

	@Override
	public int insertSelective(Asset record) {
		return assetMapper.insertSelective(record);
	}

	@Override
	public Asset selectByPrimaryKey(String id) {
		return assetMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(Asset record) {
		return assetMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Asset record) {
		return assetMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<Asset> selectAll(Asset asset) {
		return assetMapper.selectAll(asset);
	}

}
